<!-- testJSON.vue -->
<template>
	
	<view>test123123</view>
<!-- 	<view class="brand-list">
		<view v-for="brand in brands" :key="brand.brand_id" class="brand-item">
			<image :src="brand.brand_logo" mode="aspectFill" class="brand-logo"></image>
			<text class="brand-name">{{ brand.brand_name }}</text>
			<text class="brand-shopurl">{{ brand.brand_shopurl }}</text>
		</view>
	</view> -->
</template>

<script setup>
	// import {ref,onMounted} from 'vue';
	// import uniRequest from '@/uni-request.js'
	// const brands = ref([]);

	// onMounted(() => {
	// 	getBrands();
	// });

	// async function getBrands() {
	// 	try {
	// 		const res = await uniRequest({
	// 			url: '/index/getBrandCate'
	// 		});
	// 		if (res.code === 1) {
	// 			brands.value = res.data;
	// 		} else {
	// 			console.error('获取品牌失败:', res.message);
	// 		}
	// 	} catch (error) {
	// 		console.error('请求失败:', error);
	// 	}
	// }
</script>

<style scoped>
	.brand-list {
		display: flex;
		flex-direction: column;
	}

	.brand-item {
		display: flex;
		align-items: center;
		margin-bottom: 10px;
	}

	.brand-logo {
		width: 100px;
		height: 100px;
		margin-right: 10px;
	}

	.brand-name {
		font-size: 16px;
		font-weight: bold;
	}

	.brand-shopurl {
		font-size: 14px;
		color: #666;
	}
</style>
